package cn.stylefeng.guns.modular.business.service;

import cn.stylefeng.guns.modular.business.entity.SubDic;
import cn.stylefeng.guns.modular.business.entity.SubDrawInfo;
import cn.stylefeng.guns.modular.business.pojo.SubDrawInfoRequest;
import cn.stylefeng.roses.kernel.db.api.pojo.page.PageResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 大运图志 服务类
 *
 * @author zhangyaowen
 * @date 2021/08/18 14:09
 */
public interface SubDrawInfoService extends IService<SubDrawInfo> {

	/**
     * 新增
     *
     * @param subDrawInfoRequest 请求参数
     * @author zhangyaowen
     * @date 2021/08/18 14:09
     */
    void add(SubDrawInfoRequest subDrawInfoRequest);

	/**
     * 删除
     *
     * @param subDrawInfoRequest 请求参数
     * @author zhangyaowen
     * @date 2021/08/18 14:09
     */
    void del(SubDrawInfoRequest subDrawInfoRequest);

	/**
     * 编辑
     *
     * @param subDrawInfoRequest 请求参数
     * @author zhangyaowen
     * @date 2021/08/18 14:09
     */
    void edit(SubDrawInfoRequest subDrawInfoRequest);

	/**
     * 查询详情
     *
     * @param subDrawInfoRequest 请求参数
     * @author zhangyaowen
     * @date 2021/08/18 14:09
     */
    SubDrawInfo detail(SubDrawInfoRequest subDrawInfoRequest);

	/**
     * 获取列表
     *
     * @param subDrawInfoRequest        请求参数
     * @return List<SubDrawInfo>  返回结果
     * @author zhangyaowen
     * @date 2021/08/18 14:09
     */
    List<SubDrawInfo> findList(SubDrawInfoRequest subDrawInfoRequest);

    /**
     * 单类查询检索数据
     * @param subDrawInfoRequest
     * @return
     */
    PageResult<Map<String,Object>> findOneList(SubDrawInfoRequest subDrawInfoRequest);

    /**
     * 获取图志数据
     * @param subDrawInfoRequest
     * @return
     */
    PageResult<Map<String,Object>> findAllList(SubDrawInfoRequest subDrawInfoRequest);
	/**
     * 获取列表（带分页）
     *
     * @param subDrawInfoRequest              请求参数
     * @return PageResult<SubDrawInfo> 返回结果
     * @author zhangyaowen
     * @date 2021/08/18 14:09
     */
    PageResult<SubDrawInfo> findPage(SubDrawInfoRequest subDrawInfoRequest);

    /**
     * 获取图志详情信息
     * @param id
     * @return
     */
    List<Map<String, Object>> toSubDrawInfoReview(String  id);

    /**
     * 统一检索
     * @param riverList
     * @param townList
     * @param times
     * @param name
     * @return
     */
    List<Map<String,Object>> findAllListDraw(List<SubDic> riverList, List<SubDic> townList, String[] times, String name);
}